<template>
  <div class="main">
    <div>
      <el-button type="primary"
                 @click="handelDialog('add')">创建优惠卷</el-button>
    </div>
    <open-dialog ref="openDia"></open-dialog>
    <table-list ref="tableList"></table-list>

  </div>
</template>

<script>
import openDialogVue from './component/openDialog.vue'
import tableListVue from './component/tableList.vue'


openDialogVue
export default {
  components: {
    "open-dialog": openDialogVue,
    "table-list": tableListVue
  },
  methods: {
    handelDialog (type) {
      this.$refs.openDia.open(type)
    }
  }

}
</script>

<style lang="scss" scoped>
.main {
  padding: 20px;
}
</style>